| |
| Payout
History: |
|
No. |
Amount: |
Date: |
Status: |
$account_id =$dbf->f(affiliate_account_id);
$db = new ps_DB;
$q = "SELECT * FROM credit WHERE credit_account_id='$account_id' AND credit_type='2';";
$db->query($q);
while ($db->next_record()) { ?>
f("credit_status") != 1) { echo "bgcolor=\"#C8DBDB\""; } else { echo "bgcolor=\"#E2E9E9\""; } ?>>
|
f("credit_id");?>
|
f("credit_amount"));?>
|
f("credit_date_added");?>
|
$status = $db->f("credit_status");
if($status==0) $amount = "0";
if($status==1) $amount = $db->f("credit_amount");
if($status==2) $amount = $db->f("credit_amount_applied");
echo setup("currency");
printf("%.2f", $amount);
?>
|
} if ($db->num_rows() < 1) echo "No payouts have been issued at this time."; ?>
|
| |
| Referrals
Resulting in Sales: |
|
No. |
Amount: |
Date: |
Status: |
Your
Fee: |
$db = new ps_DB;
$q = "SELECT * FROM orders WHERE order_affiliate_id='$affiliate_id'";
$db->query($q);
while ($db->next_record()) { ?>
|
f("order_id");?>
|
f("order_amount"));?>
|
f("order_date");?>
|
$s = $db->f("order_status");
if ($s == 0) echo "Pending";
if ($s == 1) echo "Complete";
if ($s == 2) echo "Voided";
if ($s == 3) echo "Canceled";
if ($s == 4) echo "Declined";?>
|
$t = $dbf->f("affiliate_type");
if ($t == 1) {
$s = setup("aff_pay_1");
if ($s==0) { $amount = setup("aff_pay_1a") * $db->f("order_amount"); }
if ($s==1) { $amount = setup("aff_pay_1a"); }
echo setup("currency");
printf("%.2f",$amount);
}
if ($t == 2) {
$s = setup("aff_pay_2");
if ($s==0) { $amount = setup("aff_pay_2a") * $db->f("order_amount"); }
if ($s==1) { $amount = setup("aff_pay_2a"); }
echo setup("currency");
printf("%.2f",$amount);
}
?>
|
} if ($db->num_rows() < 1) echo "No referrals have resulted in sales at this time."; ?>
|
| |
| Total
Referrals to Date:
echo show_affiliate_referrals($affiliate_id); ?>
|
| |
| Linking
Instructions : |
|
To
start referring customers to
echo setup("company"); ?>
, you must use the link below. You can send it in emails, use the url
with banners or other images, or as a standard link on your website.
URL:
">Test
It Here!
|